//
//  UIView+IB.m
//  MeiDa
//
//  Created by zfc on 2019/10/15.
//  Copyright © 2019年 depelec. All rights reserved.
//

#import "UIView+IB.h"

@implementation UIView (IB)

- (void)setCornerRadius:(CGFloat)cornerRadius {
    self.layer.cornerRadius = cornerRadius;

//    UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:self.bounds byRoundingCorners:UIRectCornerAllCorners cornerRadii:CGSizeMake(cornerRadius, cornerRadius)];
//    CAShapeLayer *maskLayer = [CAShapeLayer layer];
//    maskLayer.frame = self.frame;
//    maskLayer.path = maskPath.CGPath;
//    //    cell.articleLab.layer.mask = maskLayer;
//
//    self.layer.mask = maskLayer;
}

- (CGFloat)cornerRadius {
    return self.cornerRadius;
}

- (void)setBorderWidth:(CGFloat)borderWidth {
    self.layer.borderWidth = borderWidth;
}

- (CGFloat)borderWidth {
    return self.borderWidth;
}

- (void)setBorderColor:(UIColor *)borderColor {
    self.layer.borderColor = [borderColor CGColor];
}

- (UIColor *)borderColor {
    return self.borderColor;
}

@end
